dojo.declare("MServicesPg", wm.Page, {
    vendorId:'',
    serviceId:'',
    projectServiceVendor:'',
    start: function() {

    },
    "preferredDevice": "phone",

    lvProjectServicesResult: function(inSender, inDeprecated) {

    },
    listProjectServicesSelect: function(inSender, inItem) {
        try{
        this.panelBackButton.setShowing(true);
        
        var selectedData = inSender.selectedItem.getData();
        //set the values for later use
        this.projectServiceVendor=selectedData.projectServiceVendorId;
        this.vendorId=selectedData.customer.customerId;
        this.serviceId=selectedData.services.serviceId;
        
        if (selectedData.services.serviceName === "CATERING") {
          
          this.ncCateringPage.update();

        } else if (selectedData.services.serviceName === "FISHMART") {


        }
        if (selectedData.services.serviceName === "RETAIL") {


        }
        
        console.error(selectedData.projectServiceVendorId);
        console.error(selectedData.customer.customerId);
        }catch(e){
            console.error(e);
            }
        // console.error(inSender);
    },
    mobileIconButton1Click1: function(inSender) {
		this.listProjectServices.deselectAll();
	},
	mobileIconButton2Click1: function(inSender) {
	  this.mobileIconButton1Click1(inSender);
	},
  _end: 0
});